//
//  AddProductViewController.h
//  Spa
//
//  Created by PangPond on 10/1/2556.
//  Copyright (c) พ.ศ. 2556 innova. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseUtility.h"
#import "AddProductCell.h"
#import "AddProductPriceCell.h"
@interface AddProductViewController : UIViewController<UITextFieldDelegate>{
    
}

@property(nonatomic,strong)DatabaseUtility *databaseUtility;
@property(nonatomic,strong)NSString * keyIf;
@property(nonatomic,strong)NSString * keyProductName;
@property(nonatomic,strong)NSString * keyProductPrice;
-(IBAction)BackButton:(id)sender;
-(IBAction)SaveButton:(id)sender;

//Cell
@property(nonatomic,strong)IBOutlet AddProductCell *addProductCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldName;
@property(nonatomic,strong)IBOutlet UITextField *fieldPrice;

//Cell Price
@property(nonatomic,strong)IBOutlet AddProductPriceCell *addProductPriceCell;

//validate
-(BOOL)validate: (NSString *) candidate;
-(BOOL)validateInt: (NSString *) candidate;
@end
